import axios from '@/utils/axios'

// 查询维修人员信息
export function queryMaintainerAPI() {
    return axios.post("/api/user/user-client/cms/maintainerInfo/queryInfo", {}, {
        headers: {
          'Content-Type': 'application/json'
        }
      })
}

// 新增维修人员信息
export function addMaintainerAPI(data) {
    return axios.post("/api/user/user-client/cms/maintainerInfo/addInfo", data, {
        headers: {
          'Content-Type': 'application/json'
        }
      })
}

// 更新维修人员信息
export function updateMaintainerAPI(data) {
    return axios.post("/api/user/user-client/cms/maintainerInfo/updata", data, {
        headers: {
          'Content-Type': 'application/json'
        }
      })
}

// 删除维修人员信息
export function deleteMaintainerAPI(id) {
    return axios.post(`/api/user/user-client/cms/maintainerInfo/delete?id=${id}`, {}, {
        headers: {
          'Content-Type': 'application/json'
        }
      })
}